﻿#include "CmdLineChartDialogCurveSmoothing.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdLineChartDialogCurveSmoothing::CmdLineChartDialogCurveSmoothing()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdLineChartDialogCurveSmoothing::~CmdLineChartDialogCurveSmoothing()
    {
    }

    bool CmdLineChartDialogCurveSmoothing::execute()
    {
        bool _success = false;
        emit IBaseSignalInstance->signal_lineChartDialogCurveSmoothing(
                m_data
        );
        return true;
    }

    void CmdLineChartDialogCurveSmoothing::undo()
    {
        // TODO: undo
    }

    void CmdLineChartDialogCurveSmoothing::redo()
    {
        execute();
    }

} // namespace PostCommand
